<?php namespace app\common\service;
use  \app\common\model\Opt as OptModel;
use think\Exception;


/**
 * Class Opt
 * @package app\common\service
 */
class Opt extends Base{

    /**
     * Opt constructor.
     */
    public function __construct()
    {
        parent::__construct();
        $OptModel= new OptModel();
        $this->model = $OptModel;
    }

    /**
     * @param $where
     * @param $page
     * @param int $limit
     * @return array
     */
    public function getList($where, $page, $limit=10){
        try{
            $data=$this->paginatet($where,'*','weigh',$limit,$page,'');

        }catch (\Exception $e){
            $data=[];
        }
        return $data;
    }


}